<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		var sum=0;
		var sco=0;
		var avg=0;
		for(i=1;i<=5;i++){
			sco=Number(prompt('请输入你的成绩：'));
			sum+=sco;
		}
		avg=sum/5;
		console.log('平均分为'+avg);
	</script>
</head>
<body>
	
</body>
</html>